# -*- coding:utf-8 -*-
import pygame
import sys

pygame.init()
size = width, height = 666,600#界面大小
screen = pygame.display.set_mode(size)#创建界面
pygame.display.set_caption('hello world!')#设置标题

while True:
    for event in pygame.event.get():#事件队列
        #print(str(event))
        if event.type == pygame.QUIT:
            sys.exit()
        if event.type == pygame.MOUSEMOTION and event.buttons == (1,0,0):
             print(event.pos) 
